/*
 * glFont.h
 *
 *  Created on: Oct 16, 2012
 *      Author: travis
 *
 *      Loading font using textures
 *      In ctor setup: screen size, file name of wanted texture and directory with font/
 *
 */

#pragma once

#ifdef _WIN32 

#include <windows.h>
#include "SDL_opengl.h"

#else

#include "SDL/SDL_opengl.h"

#endif


#include <math.h>// Hlavi�kov� soubor pro matematickou knihovnu
#include <stdio.h>// Hlavi�kov� soubor pro standartn� vstup/v�stup
#include <stdarg.h>// Hlavi�kov� soubor pro funkce s prom�nn�m po�tem parametr�

#include "../textures/Textures.h"
#include "../engine/engineSettings.h"

class glFont
{
public:
	// size of screen, directory with /font
	glFont(std::string _filename);
	~glFont();

	void BuildFont();
	void KillFont();
	void glPrint(GLint x, GLint y, int set, const char *fmt, ...);
protected:
private:
	GLuint base; // ��slo z�kladn�ho display listu znak�
	GLuint loop; // Generic Loop Variable
	std::string filename; // name of font texture
	GLuint tex;
};
